Component({
    properties: {
        ticket: {
            type: Object
        },
        selectMode: {
            type: Boolean,
            value: !1
        },
        isSelected: {
            type: Boolean,
            value: !1
        }
    },
    data: {
        platform: [ "仅限线上", "全渠道", "仅限门店", "仅限优选机" ]
    },
    methods: {
        selectNullOnTap: function() {},
        selectMyOnTap: function() {
            this.triggerEvent("onSelected", {
                coupon: this.data.ticket
            });
        },
        toCouponProductList: function() {
            1 == this.properties.ticket.sceneType ? wx.navigateTo({
                url: "/pages/order/order"
            }) : 0 == this.properties.ticket.useType ? wx.switchTab({
                url: "/pages/index/index"
            }) : wx.navigateTo({
                url: "/pages/coupon-product-list/coupon-product-list?couponId=".concat(this.properties.ticket.couponId)
            });
        }
    }
});